/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package springholamundodiconstructor;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 *
 * @author Academico
 */
public class Main {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        //BeanFactory factory = new XmlBeanFactory(new FileSystemResource("beans.xml"));

        ApplicationContext context = new ClassPathXmlApplicationContext(new String[] {"beans.xml"});
        
        Impresora imp = (Impresora) context.getBean("impresora");
        imp.imprimir();
    }

}
